package test_OOP01;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Person[] Person = new Person[5];
        Student xm = new Student("小明", 16, 10086);
        Student xl = new Student("小亮", 16, 10088);
        Student ll = new Student("莉莉", 15, 10088);
        Teacher lw = new Teacher("老王", 66, 19999);
        Teacher lg = new Teacher("老公", 66, 20000);
        Person[0] = xm;
        Person[1] = xl;
        Person[2] = ll;
        Person[3] = lw;
        Person[4] = lg;
        for (Person x : Person) {
            x.showMessage();
        }

    }
}
